package org.jackysoft.entity;

import java.util.Collection;

import javax.persistence.Entity;
import javax.persistence.JoinTable;
import javax.persistence.ManyToMany;
import javax.persistence.Table;

import org.jackysoft.entity.AbstractEntity;
import org.jackysoft.entity.User;
import org.jackysoft.util.MySqlSchema;

@Entity
@Table(name="os_currentstep_prev",schema=MySqlSchema.Identifyedbase)
public class CustomOrganization extends AbstractEntity {
	/**
	 * 
	 */
	private static final long serialVersionUID = -8553720255385205529L;

	private String name;
	private Collection<User> users;	
	

	@ManyToMany
	@JoinTable(name="user_on_organization")
	public Collection<User> getUsers() {
		return users;
	}

	public void setUsers(Collection<User> users) {
		this.users = users;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}

}
